package com.fadadianqi.logistics.admin.staff.dao.ibatis;

import com.fadadianqi.logistics.admin.staff.dao.GroupDAO;
import com.fadadianqi.logistics.admin.staff.model.Group;
import com.fadadianqi.commons.GenericDAOSuport;
import org.springframework.stereotype.Component;

import java.util.List;


@Component
public class GroupDAOImpl extends GenericDAOSuport<String, Group> implements
        GroupDAO {

    @Override
    public List<Group> findAll() {
        return super.findAll(null);
    }

    @Override
    protected Class<?> getObjectClass() {
        return Group.class;
    }

    @Override
    protected String getTableName() {
        return "staff_group";
    }

}
